import java.io.*;
import java.net.*;
import java.sql.*;
public class Client_Main{
 public static void main (String args[ ]) {
  String [] mess={"**************"};
  Socket mysocket;
  DataInputStream in=null;
  DataOutputStream out=null;
  Connection con =null;
  Statement sta = null;
  ResultSet rs;
  String SQL;
  try {
      class.forName("org.apache.derby.jdbc.EmbeddedDriver");
       }
   catch(Exception e) { }
  try {
       String url = "jdbc:derby:client_学号;create=true";
       con=DriverManager.getConnection(uri);
       sta.execute(SQL);
      }
   SQL="insert into ip_学号 values"+
  try{  mysocket = new Socket("127.0.0.1",2010);
       in = new DataInputStream(mysocket.getInputStream());
       out = new DataOutputStream(mysocket.getOutputStream());
       for(int i=0;i<mess.length;i++) {
           out.writeUTF(mess[i]);
           String s =in.readUTF();
           System.out.println("客户收到服务器的回答:"+s);
           Thread.sleep(500);
        }
      }
      catch(Exception e) {
         System.out.println("服务器已断开"+e);
      }
     }
    }